package com.leen.news.entity;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author 
 * 附件管理表
 */
@Data
@ToString(callSuper = true)
@ApiModel(value = "附件管理表")
@TableName(value = "yx_system_attachment")
public class YxSystemAttachment implements Serializable {

    @ApiModelProperty(value = "附件管理ID",example = "0")
    @TableId(type = IdType.AUTO)
    private Long attId;

    /**
     * 附件名称
     */
    @ApiModelProperty(value = "附件名称")
    @TableField(value = "name")
    private String name;

    /**
     * 附件路径
     */
    @ApiModelProperty(value = "附件路径")
    @TableField(value = "att_dir")
    private String attDir;

    /**
     * 压缩图片路径
     */
    @ApiModelProperty(value = "压缩图片路径")
    @TableField(value = "satt_dir")
    private String sattDir;

    /**
     * 附件大小
     */
    @ApiModelProperty(value = "附件大小")
    @TableField(value = "att_size")
    private String attSize;

    /**
     * 附件类型
     */
    @ApiModelProperty(value = "附件类型")
    @TableField(value = "att_type")
    private String attType;

    /**
     * 分类ID0编辑器,1产品图片,2拼团图片,3砍价图片,4秒杀图片,5文章图片,6组合数据图
     */
    @ApiModelProperty(value = "分类ID0编辑器")
    @TableField(value = "pid")
    private Integer pid;

    /**
     * 图片上传类型 1本地 2七牛云 3OSS 4COS 
     */
    @ApiModelProperty(value = "图片上传类型")
    @TableField(value = "image_type")
    private Byte imageType;

    /**
     * 图片上传模块类型 1 后台上传 2 用户生成
     */
    @ApiModelProperty(value = "图片上传模块类型")
    @TableField(value = "module_type")
    private Byte moduleType;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @TableField(value = "uid")
    private Long uid;

    /**
     * 邀请码
     */
    @ApiModelProperty(value = "邀请码")
    @TableField(value = "invite_code")
    private String inviteCode;

    @ApiModelProperty(value = "添加时间")
    @TableField(value = "create_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value = "update_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(value = "is_del")
    private Boolean isDel;

    private static final long serialVersionUID = 1L;
}